package com.ysy.tz.mfg.print;

public class Print_Text_USB {
    static CDFPSKDll PrintLab;

    public Print_Text_USB() {
    }

    public static void main(String[] args) {
        System.setProperty("jna.encoding", "UTF-8");
        PrintText();
    }

    public static void PrintText() {
        int mm = 12;
        System.out.println("---->>> 现在的DPI是 " + mm);
        int result = PrintLab.PTK_OpenUSBPort(255);
        if (result != 0) {
            System.err.println(Printers.getErrorInfo(result));
        } else {
            int offset_X = 0;
            int offset_Y = 0;
            int[] status_USB = new int[4];
            String PrinterStatus = "";
            int result_printing = PrintLab.PTK_ErrorReport_USBInterrupt(status_USB);
            if (result_printing != 0) {
                Printers.showError("PTK_ErrorReport_USBInterrupt", result_printing);
            } else {
                PrinterStatus = status_USB[0] + "";
                if (!PrinterStatus.equals("0") && !PrinterStatus.equals("4")) {
                    PrintLab.PTK_CloseUSBPort();
                    System.err.println("是这里吗?---打印机未就绪，当前错误报告：" + Printers.Status_Explain(PrinterStatus));
                } else {
                    result_printing = PrintLab.PTK_ClearBuffer();
                    if (result_printing != 0) {
                        Printers.showError("PTK_ClearBuffer", result_printing);
                    } else {
                        result_printing = PrintLab.PTK_SetDarkness(10);
                        if (result_printing != 0) {
                            Printers.showError("PTK_SetDarkness", result_printing);
                        } else {
                            result_printing = PrintLab.PTK_SetPrintSpeed(4);
                            if (result_printing != 0) {
                                Printers.showError("PTK_SetPrintSpeed", result_printing);
                            } else {
                                result_printing = PrintLab.PTK_SetDirection('B');
                                if (result_printing != 0) {
                                    Printers.showError("PTK_SetDirection", result_printing);
                                } else {
                                    result_printing = PrintLab.PTK_SetLabelHeight(90 * mm, 24, 0, false);
                                    if (result_printing != 0) {
                                        Printers.showError("PTK_SetLabelHeight", result_printing);
                                    } else {
                                        result_printing = PrintLab.PTK_SetLabelWidth(54 * mm);
                                        if (result_printing != 0) {
                                            Printers.showError("PTK_SetLabelWidth", result_printing);
                                        } else {
                                            result_printing = PrintLab.PTK_DrawText_TrueType(32 + offset_X, 50 + offset_Y, 48 * mm, 48 * mm, "黑体", 1, 900, false, false, false, "D");
                                            if (result_printing != 0) {
                                                Printers.showError("PTK_DrawText_TrueType", result_printing);
                                            } else {
                                                String Base64_Data = "iVBORw0KGgoAAAANSUhEUgAAASAAAABwCAYAAAC+eq3DAAAAAXNSR0IArs4c6QAAIABJREFUeF7tfXd8VcXW9nPOSW+AXXzvvdLskNCUAEqTqwKCvoqXlkaTXtIgCUhNSAcSutSEUBUTpOtVQOSqqEgXCMWCdEjvOef7zVpzdk4Q1N/3vep377vmD/IwZ5999p49+5m1nrVmxmSz2WyQIi0gLSAt8Ce0gEkI6E9odflJaQFpAWoBISDpCNIC0gJ/WgsIAf1pTS8/LC0gLSAEJH1AWkBa4E9rAZPVarWZTCbjAqw2G8z6/0qdvnb1Cn124tgRVFVWEq6oqMQTTzUl/OBDD+Hb40cJFxUU4nFdX6duXVitVqr/9thR/PD994TNZnPNb1mtuO/+++j/vi1aw2zm66iursZ3584SPnf2DKqrqgk7O7ugTbt2hN09PPjYqmqcOH6EcEF+gXFd9erdBRtYX7948QJyT50iXFJUDLOFr0F9183NjbBfy1ZwdnYmfPzoEeTl5RG2WCxo6utL+J5774e9rZR2b2+2vJs38dWBz+mYh/7yFzz2+JOErdVWVOs2OHn8KK5du0b1bdryPbi5u6Oysorw0cPfoKy0lPCTzZrBx6cuYTqPPof67fNnc6nubG6uUW9xckLL1k9TvU+dmu/l5+Xh9MkTVN/4kUdRp249wqqdi4uKCB/4/DPUqeNDuHmrZwDdZpWVlTiXe5rqL1++hKa+zQnXVe16S9zCaq3G4YNf0edXr1w1Pq//0ENo8tjjfK9ubrB/7fSpE/jx+x+ovrKiAmaLhbB/+2fhpPGBz/6FUt0efP1N6Ji/PtwITk58/M0bN3Do4NeEK8rLjb716OOP46G//I3qLWYzSkpKCKu2UPdCRYde7r7nHvi1aMXtYjEbz+CrLz6Hp5cn1T/R1BfXrlwmfPLECTzx1FOE773vAeofNafjk5pggtXGff/G9Ws49DVfo+rXjuX+Bx6g/z7+VDM4Oz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CZAMHBePZDnyd9j7D1/8rIjR9Q4q0gLSAtMDv0gJCQL9Ls8pJpQWkBX5LCwgB/ZZWuuUYu3F9p7jHL53y/+W7/xeX+m/9FUc18t/6Rn7jxf9P9o1/n7b7P/DyoxxQrjgrAAAAAElFTkSuQmCC";
                                                result_printing = PrintLab.PTK_AnyGraphicsPrint_Base64(10 + offset_X, 420 + offset_Y, 4, 0.5F, 80, 20, 0, Base64_Data);
                                                if (result_printing != 0) {
                                                    Printers.showError("PTK_AnyGraphicsPrint_Base64", result_printing);
                                                } else {
                                                    result_printing = PrintLab.PTK_DrawText_TrueType(10 + offset_X, 482 + offset_Y, 3 * mm, 0, "宋体", 1, 600, false, false, false, "质检员：001");
                                                    if (result_printing != 0) {
                                                        Printers.showError("PTK_DrawText_TrueType", result_printing);
                                                    } else {
                                                        String Base64_Data1 = "iVBORw0KGgoAAAANSUhEUgAAAHAAAABvCAYAAAA0YEQFAAAAAXNSR0IArs4c6QAABOxJREFUeF7tnFty4zAMBNf3P7RT8Va5JEUymzMQJSaz3yABTgPgQxs/ns/n81/+TavAIwCnZfcKPADn5rcG+Hg8brOcvc4+Ir6r/FLht/GtKnCEQGqgr3YxIMECkBJq2F0l5FV+qWypwJsmTgBSBf4awBHXxL29jbayO9kV5dB7GqJL8xATgPuHp7voEoCbsnEqOhW4UMARkrSeo2uJ4zcAA3CVAyQRpRbqXKidDCcLqq4Ct1JpPKouAQgUpolzRWIHYAACBQbvbX0Rta1TgQHYzJI/uwc2lflgQC/jqcATKzAAF2l450w743tgKlBIf7XXB+B/sbu/B1LBKUs6H7WjfvfsUoGCehQMFVcI4T3E2TLoOmh8dL6pK5CKQe0CkCpVdAoV3H0cEoCComqrEFw1hwRgU6KfBgG4L5qqi/SYLXA7rZXR0yWttr35nLGOVsRvAAKFiZBgmm4T4jcAgaxESDBNtwnxG4BAViIkmKbbhPgNQCArERJM021C/DYBdnstGqCeyr7dk4W7dkXL7J6m+yWm20PRgABk141U4EYnmjhFedo9TSpwI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PodUB0PmoQM73uwCkNAS7ABRaqKBzhlyswFQ/cnCxVrd0H4C3xMKD+gK+c0ssw6kK5gAAAABJRU5ErkJggg==";
                                                        result_printing = PrintLab.PTK_AnyGraphicsPrint_Base64(30 + offset_X, 510 + offset_Y, 4, 1.0F, 0, 0, 0, Base64_Data1);
                                                        if (result_printing != 0) {
                                                            Printers.showError("PTK_AnyGraphicsPrint_Base64", result_printing);
                                                        } else {
                                                            result_printing = PrintLab.PTK_PrintLabel(1, 1);
                                                            if (result_printing != 0) {
                                                                Printers.showError("PTK_PrintLabel", result_printing);
                                                            } else {
                                                                PrintLab.PTK_CloseUSBPort();
                                                                System.out.println("执行成功！");
                                                            }
                                                        }
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    static {
        PrintLab = CDFPSKDll.Instance;
    }
}
